package com.mmw.crm.controller;


import com.mmw.crm.bo.SysConfigBo;
import com.mmw.crm.result.Result;
import com.mmw.crm.service.SysConfigService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SysConfigController {

    @Resource
    SysConfigService sysConfigService;

    @PostMapping("/sysConfig/querySysConfig")
    public Result querySysConfig(){
        SysConfigBo sysConfigBo = new SysConfigBo();
        sysConfigBo.setLogo("");
        sysConfigBo.setName("");
        return Result.build(sysConfigBo,null,0);
    }

    @PostMapping("/login")
    public String login(@RequestParam("username") String username,@RequestParam("password") String password){
        String res = sysConfigService.getLogin();
        return res;
    }

    @PostMapping("/CrmBackLog/num")
    public String CrmBackLogNum(){
        String res = sysConfigService.getLogNum();
        return res;
    }
}
